package com.example.demo.domain;

public class Request<T> {
    private String appId;
    private long timestamp;
    private String method;
    private String sign;
    private String channelType;
    private T data;

    public void initTimeStamp(){
        this.timestamp = System.currentTimeMillis()/1000;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getAppId() {
        return appId;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }
}
